<?php
	$dbhost = DATABASE_HOST;
	$dbuser = DATABASE_USER;
	$dbpass = DATABASE_PASSWORD;
	$dbname = DATABASE_NAME;
	$mysqli = new mysqli($dbhost, $dbuser, $dbpass, $dbname);

	if (mysqli_connect_errno()) {
		die("Database connection failed: " . mysqli_connect_error());
	}
?>